package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DocHospital entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dr_hospital")
public class Hospital implements java.io.Serializable {

    // Fields

    /**
     * 
     */
    private static final long serialVersionUID = 6759760183860799573L;
    private Integer id;
    private Integer cityId;
    private String name;
    private Date createdAt;
    private String createdBy;
    private Date changedAt;
    private String changedBy;
    private String address;
    private String level;
    private String phone;
    /** 特色专科 */
    private String specDepartment;
    /** 主要设备 */
    private String equipment;
    /** 网址 */
    private String website;
    /** 乘车路线 */
    private String busRoute;
    /** 等级类型 */
    private Integer levelType;
    /** 屏蔽状态 0：正常；1：屏蔽 */
    private Integer hide;

    // Constructors

    /** default constructor */
    public Hospital() {
    }

    /** full constructor */
    public Hospital(Integer cityId, String name, Date createdAt, String createdBy, Date changedAt,
            String changedBy) {
        this.cityId = cityId;
        this.name = name;
        this.createdAt = createdAt;
        this.createdBy = createdBy;
        this.changedAt = changedAt;
        this.changedBy = changedBy;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "city_id")
    public Integer getCityId() {
        return this.cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    @Column(name = "name")
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "created_at", length = 19)
    public Date getCreatedAt() {
        return this.createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Column(name = "created_by")
    public String getCreatedBy() {
        return this.createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Column(name = "changed_at", length = 19)
    public Date getChangedAt() {
        return this.changedAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    @Column(name = "changed_by")
    public String getChangedBy() {
        return this.changedBy;
    }

    public void setChangedBy(String changedBy) {
        this.changedBy = changedBy;
    }

    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Column(name = "level")
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "spec_department")
    public String getSpecDepartment() {
        return specDepartment;
    }

    public void setSpecDepartment(String specDepartment) {
        this.specDepartment = specDepartment;
    }

    @Column(name = "equipment")
    public String getEquipment() {
        return equipment;
    }

    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }

    @Column(name = "website")
    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    @Column(name = "bus_route")
    public String getBusRoute() {
        return busRoute;
    }

    public void setBusRoute(String busRoute) {
        this.busRoute = busRoute;
    }

    @Column(name = "level_type")
    public Integer getLevelType() {
        return levelType;
    }

    public void setLevelType(Integer levelType) {
        this.levelType = levelType;
    }

    @Column(name = "hide")
    public Integer getHide() {
        return hide;
    }

    public void setHide(Integer hide) {
        this.hide = hide;
    }
}